Skip to content

feat(spec)!: action locations say what an action acts on - #37929

Draft
objectstack-fleet[bot] wants to merge 10 commits into
mainfrom
claude/project-thread-rswxk0
Draft

objectstack-fleet[bot] wants to merge 10 commits into
mainfrom
claude/project-thread-rswxk0

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Part of #36495

What changes

An action's locations now say what the action acts on, not the part of the page it sits in. ACTION_LOCATIONS is list, record, record_page, record_row, record_related, record_section. The page-part words list_toolbar, list_item, record_header and record_more are retired.

  • record is new: the action acts on one record, so it is drawn on the record page's header and in each list row's menu.
  • The record header's ⋯ fold, which record_more used to say, is the action's component: 'action:menu'.
  • Which actions are buttons and in what order stays the object's actionLayout.

Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #37895

A replacement with a registered conversion, so yes (narrowing) as on main's precedents (.changeset/pre/37086-define-metadata-form-rename.md, .changeset/pre/37304-knowledge-source-governed-type.md). Narrowed: the four retired words are refused wherever a location is read. Widened in the same change:

  • the four newly accepted values list, record, record_page and record_row, at the same positions;
  • the new @object-ui/types export actionFoldedIntoMenu;
  • eight new @object-ui/i18n Studio keys for the location labels (en, zh), replacing the eight keys of the retired words.

ADR-0087 conversion action-locations-acted-on (lossless)

FROM → TO. Each action is drawn in exactly the places it was drawn before:

  • list_toolbar → list
  • list_item → record_row
  • record_header / record_more → record_page
  • record_header or record_more beside list_item → record
  • record_more without record_header → record_page + component: 'action:menu'
  • A component's single location (record:quick_actions, action:group, action:bar) is mapped the same way.

The conversion is retired from the load path from day one, as every protocol-19 entry is. An old word is refused at authoring, and the refusal names the word to write instead. Stored items, built artifacts and os migrate meta --from 18 replay the conversion. It leaves a TODO and changes nothing in four cases that have no lossless rewrite:

  • a record_more-only action that is also on list_toolbar, without component: 'action:menu' already (with it, the rewrite is lossless); there are 0 in this repo
  • an action at record_header with an authored component: 'action:menu': the header folded it into its ⋯ while a record:quick_actions bar at record_header drew it as a button, and record_page has one state for both; 0 in objectstack and HotCRM. Pinned in packages/spec/src/conversions/action-locations-acted-on.test.ts; removing the TODO turns 3 of its cases red
  • a component whose location is record_more
  • an action:group at record_header with a record_more-only member

A site left as stored keeps its old word, which a protocol-19 runtime matches to no surface: that action or block is drawn nowhere until it is rewritten by hand.

The semantic entry action-locations-page-parts-retired carries the step into the protocol-19 upgrade guide.

Readers

  • @object-ui/types:
    • actionRendersAt reads record as covering record_page and record_row.
    • The new actionFoldedIntoMenu tells whether an action is folded into the ⋯.
    • arrangedHeaderActions pins and unpins through component.
  • page:header sends every folded action to its ⋯. Every other record_page action takes the inline budget.
  • record:quick_actions at record_page leaves folded actions out.
  • The related list reads record as a row action.
  • The record-scoped checks in core and runtime (isRecordScopedAction, requiresRecord) accept record.
  • Studio:
    • The action inspector and the record:quick_actions location dropdown offer record.
    • The action preview draws the fold as "record_page · ⋯".
  • Lint: the record-page header, related-list and action-layout rules read the new words. The related-list hint now groups locations that draw the same thing, which keeps the one-line fix under 200 characters.
  • Declarations under packages/**, examples/** and ui/**, plus content/docs/**, use the new words. The generated references, sdui.manifest.json and the component reference pages are regenerated.

Not moved

Size

421 files, +2478/−1631 (4109 changed lines). This is over 3000, so it is a class (c) landing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L9qic11optJUat6U8X67jY

Keeps both protocol-19 step sentences in registry.ts.template, moves the
new main declarations and the liveness evidence to the acted-on words,
and regenerates the references.

Claude-Session: https://claude.ai/code/session_01L9qic11optJUat6U8X67jY
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation protocol:data protocol:ui tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 10 package(s): @objectstack/cli, @objectstack/lint, @objectstack/metadata-protocol, @objectstack/platform-objects, @objectstack/plugin-approvals, @objectstack/downstream-contract, @objectstack/scenarios, @objectstack/runtime, @objectstack/service-datasource, @objectstack/spec, touching 81 documentable anchor(s). ⚠️ 7 changed file(s) yielded no anchor (packages/lint/src/validate-null-guards.ts, packages/spec/liveness/action.json, packages/spec/liveness/object.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

39 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 8d34c4404f951410083a6caebd6ad8003ea3423d.

⛔ 11 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 7 changed file(s) yielded no anchor (packages/lint/src/validate-null-guards.ts, packages/spec/liveness/action.json, packages/spec/liveness/object.json, …) — pages documenting those are invisible to this run
  • 13 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 191 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 8d34c4404f951410083a6caebd6ad8003ea3423d → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 66509204cdb4bd6bcc55e2a41782fee20cae2a68 — the merge of head a0d5b846e3d1a362b8d30ed26b47f909e96291d8 into base 8d34c4404f951410083a6caebd6ad8003ea3423d, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 66509204cdb4bd6bcc55e2a41782fee20cae2a68 && git checkout 66509204cdb4bd6bcc55e2a41782fee20cae2a68
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 8d34c4404f951410083a6caebd6ad8003ea3423d a0d5b846e3d1a362b8d30ed26b47f909e96291d8 && git checkout -B drift-repro 8d34c4404f951410083a6caebd6ad8003ea3423d && git merge --no-ff a0d5b846e3d1a362b8d30ed26b47f909e96291d8

node scripts/docs-audit/affected-docs.mjs --json 8d34c4404f951410083a6caebd6ad8003ea3423d

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 8d34c4404f951410083a6caebd6ad8003ea3423d → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…n location labels

The action inspector's location options are now Record · page and rows /
Record · page; the action preview draws its ⋯ frame for a folded record
page action, so the ⋯ wording is pinned on a folded fixture.

Claude-Session: https://claude.ai/code/session_01L9qic11optJUat6U8X67jY
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 0ada605 · 2026-11-27T20:06Z

L1-a (the seat's L1 thread) runs the isolated CONTRACT_REVIEW_TIER review on this head (narrowing face: the action locations vocabulary in @objectstack/spec goes from page parts to what an action acts on, with the ADR-0087 conversion action-locations-acted-on, its semantic entry, and the readers in @object-ui/types, core, runtime, lint and Studio), and posts its L1 beside it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0ada605856a2bf5cdfaecd5fd9164c57cb8da4ef
Local-runs: none
Scope: packages/spec/src/conversions/entries/19/action-locations-acted-on.ts, packages/spec/src/conversions/registry.ts, packages/spec/src/data/object-action-layout.ts, packages/spec/src/kernel/public-auth-features.ts, packages/spec/src/migrations/entries/semantic/19.action-locations-page-parts-retired.ts, packages/spec/src/migrations/registry.ts.template, packages/spec/src/stack.zod.ts, packages/spec/src/studio/plugin.zod.ts, packages/spec/src/ui/action-declarative-update.ts, packages/spec/src/ui/action.zod.ts, packages/spec/src/ui/component.zod.ts, packages/spec/src/ui/dashboard.zod.ts, packages/spec/src/ui/page.zod.ts + the other 391 paths of the diff outside content/docs/** and .changeset/** (narrowing floor: packages/**, ui/**, examples/**, scripts/sdui-manifest.record.json, sdui.manifest.json), the readers read in full: ui/packages/types/src/ui-action.ts, ui/packages/core/src/actions/ActionEngine.ts, ui/packages/core/src/actions/serverActionHandler.ts, ui/packages/components/src/renderers/layout/containers.tsx, ui/packages/components/src/renderers/action/action-bar.tsx, ui/packages/plugin-detail/src/renderers/record-quick-actions.tsx, ui/packages/plugin-detail/src/renderers/relatedListActions.ts, ui/packages/plugin-detail/src/DetailView.tsx, ui/packages/layout/src/PageHeader.tsx, ui/packages/app-shell/src/views/RelatedRecordActionsBridge.tsx, ui/packages/app-shell/src/views/DeclaredActionsBar.tsx, ui/packages/app-shell/src/views/objectViewListRenderer.tsx, ui/packages/app-shell/src/layout/designModeHeaderPinsModel.ts, ui/packages/app-shell/src/views/metadata-admin/previews/ActionPreview.tsx, ui/packages/app-shell/src/views/metadata-admin/previews/block-config.ts, packages/runtime/src/action-execution.ts, packages/lint/src/validate-record-page-header.ts, packages/lint/src/validate-action-name-refs.ts, packages/lint/src/validate-object-action-layout.ts. Read outside the diff, not reviewed: packages/spec/src/conversions/apply.ts, packages/spec/src/conversions/stored.ts, packages/metadata-core/src/artifact-forward-conversion.ts, .changeset/config.json, .changeset/pre.json, skills/objectstack-ui/rules/actions.md, docs/qa/**, and every reader above at the merge base cb3f8b95.

① Derived judgments

Inputs: card #36495 with its five comments, PR #37929 body and file list, the net diff cb3f8b95...0ada6058 (420 files, +2322/−1631), and the 70 check-runs on the head (61 success, 9 skipped, 0 failed).

  • The tap. It is on the card as comment 7213827153 (recorded 08:42Z, ruling letter A 「照卡上这套」 at 08:40Z on 2026-11-27), beside 7213534162 (start now, before 19.0.0 GA). It is the seat's record of the maintainer's tap, not a comment in the maintainer's own hand.
  • Enum equals the card's set: right. ACTION_LOCATIONS at the head is exactly list, record, record_page, record_row, record_related, record_section. No extra word, none missing. list_toolbar, list_item, record_header, record_more are gone from the enum and each is refused by the enum's own error map with its replacement (action.zod.ts; pinned in action.test.ts and retired-key-removal-version.pin.test.ts).
  • Conversion table equals the card's: right. rewriteLocations and convertAction implement the five card rows word for word. The component single-location mapping and the three TODO cases are additions the card does not state; they stay inside the ruling.
  • Accept set, narrowed: right. Four values refused on action.locations, on the row locations of action:button, action:icon and group or menu members, and on the location of record:quick_actions and action:group. Metadata-protocol: narrowed is the right kind (narrowed over added).
  • Accept set, widened: declared wrong. Four values are newly accepted at the same positions (list, record, record_page, record_row). See S2.
  • Public surface, @object-ui/types. ACTION_LOCATIONS and ActionLocation change members (breaking); actionFoldedIntoMenu is a new export (widening); arrangedHeaderActions no longer writes locations (behaviour). @object-ui/core re-exports the same constant and type and getActionsForLocation takes the new type. Named in the changeset: right, except the Clause-② line (S2).
  • Published language packs. @object-ui/i18n studio packs (en, zh) drop eight …location.* keys and add eight. Not named in the changeset as a key change (S2).
  • Readers. actionRendersAt answers record_page and record_row for record: right. isRecordScopedAction (core) and requiresRecord (runtime) keep their exact sets, respelled: right; record_related stays outside core's set and record_section outside runtime's, as on main.

② Semver level

  • @objectstack/spec major and @object-ui/types major are right. .changeset/pre.json is in pre mode (tag next), every package is at 19.0.0-next.1, and all published packages sit in one fixed group, so the release stays on the 19 prerelease line.
  • Every publishable package the diff touches is in the changeset (25 names; @objectstack/dogfood and @objectstack/downstream-contract are private). The ADR-0087 marker and the FROM → TO block are present; Check Changeset is green.
  • The per-package levels below major are changelog placement only inside the fixed group. Two are loose (N5).
  • Clause-②: no (narrowing) is not true as written. See S2.

③ Boundary flags

  • open_questions in the os-dev report (7227149591) is empty. Its six deviations are answered: (1) the skills split is carried by skills: teach the new action locations vocabulary (list / record + exception words) after #36495 #37895, see N6; (2) class (c) size is the seat's call and Check PR Size is green; (3) docs/qa is not only prose, see N7; (4) the warming imports in 23 tests and (5) the registry.ts.template merge are fine; (6) majors confirmed in ②.
  • security_findings: none agrees with the diff: no permission or capability gate changes; every gate comment that moved is a respelling.
  • SQL push-down: the diff adds no query, id materialisation or in-app join. No finding.
  • PR author is objectstack-fleet[bot].

④ Design judgment

The narrowing itself holds: it is a respelling with a migration, not a capability taken away. A grep for each retired word over packages/, ui/ and examples/ at the head, outside migrations, conversions and CHANGELOG files, leaves only comments and the two pin tests. No consumer reads a retired word. Source is refused at parse with the replacement; stored rows (applyConversionsToStoredItem) and built artifacts (floor 19.0.0 opens the major step; floor at or below 18.6.0 opens it by retiredAfter) replay the conversion.

Break attempts that held, main readers against head readers:

  • record_header + list_item to record: the header surfaces (page:header on the record page, side preview and phone bar, the design-mode pin rows, MetadataTypeActions) and the row surfaces (grid and list row menus, related-list rows in a parent, the inbox inline decisions) all go through actionRendersAt at the head. Same places.
  • record_related: record does not cover it and need not. A list_item action already drew on related-list rows on main (ROW_LOCATIONS_IN_RECORD), and record_header + record_related becomes record_page + record_related, not record.
  • record_more-only to record_page + component: 'action:menu': main's header folded on isMoreOnly or on the component; the head folds on the component alone. Replacing an authored component is lossless: row menus, related lists, DeclaredActionsBar and record:quick_actions never read an object action's component, and the header reads only action:menu.
  • record_header + record_more to record_page with no component: a button before and after.
  • arrangedHeaderActions: pinned lifts the fold, unpinned sets it; same split as main's location rewrite.
  • The three TODO cases are truly not expressible per item: the list toolbar reads the fold too; no word draws only folded actions; a group member has no component.

S1 (should-fix) — A fourth non-lossless case is converted silently. On main record:quick_actions at record_header (also its default location, and PageHeader's actions prop) drew every action whose locations included record_header, whatever its component (ActionEngine.getActionsForLocation was a plain includes). At the head the bar at record_page leaves out every action with component: 'action:menu' (record-quick-actions.tsx). So an action authored locations: ['record_header'] with component: 'action:menu' was a button in that bar on main and is absent from it at the head; no notice, no TODO. The cause is structural: main had two states (header word plus menu component: in the bar; record_more-only: not in the bar) and the head has one. The mirror case exists for an action:bar at record_page fed business actions: a former record_more-only action now appears in its overflow (no in-repo feeder passes business actions there). Census: zero authored component: 'action:menu' declarations in objectstack and in HotCRM. Fix either way: the conversion reports a TODO for an action that carries record_header and an authored component: 'action:menu', or the changeset and the semantic entry name the exception and the maintainer accepts it, since the card says every action shows exactly where it shows today.

S2 (should-fix) — Clause-②: no (narrowing) under-declares. The diff also widens: four newly accepted enum values, the new @object-ui/types export actionFoldedIntoMenu, and eight new published @object-ui/i18n keys. House precedent on main declares a replacement with a registered conversion as yes (narrowing) (.changeset/pre/37086-define-metadata-form-rename.md, .changeset/pre/37304-knowledge-source-governed-type.md) and keeps no (narrowing) for pure retirements (37712-agent-model-provider-retired.md). The line belongs as Clause-②: yes (narrowing) with the widened members named, in the changeset, the PR body and a corrected claim line. Prose faces only; no code moves, and the tier this review ran at already covers it.

N1 (nit) — At rest, two TODO shapes draw nothing on a 19 runtime until rewritten by hand: an action left as ['list_toolbar', 'record_more'] matches no reader, and a record:quick_actions left at location: 'record_more' finds no action. The read seam reports no TODO; only os migrate meta does. The changeset and the semantic entry say "left as stored" but not that consequence. Say it in the prose.

N2 (nit) — The toolbar TODO also fires when the action already carries component: 'action:menu', where ['list', 'record_page'] with the component is lossless.

N3 (nit) — Studio's record:quick_actions dropdown now offers record. A bar at record reads the exact word: it draws only actions that declare record, not record_page ones, and does not apply the fold filter that record_page applies. Follow-up card.

N4 (nit) — Wording. The enum refusal on a block's location: 'record_more' prescribes record_page, which the conversion itself says is not equivalent. The record_section advice in action.zod.ts and page.zod.ts changed from "adds record_more" (the fold) to "adds record_page" (a header button unless the component is also set). The semantic entry's comment says two sites are left as stored; its text says three.

N5 (nit) — Changeset prose. "The packages listed as patch change comments, test fixtures or authoring copy only" is not true for @objectstack/plugin-approvals and @objectstack/service-datasource (shipped declarations) or @object-ui/layout (a runtime literal). @object-ui/core, @object-ui/components and @object-ui/react carry the breaking type through re-exports and parameters at minor or patch; moot in the fixed group.

N6 (nit) — Out of scope, skills/**: safe for this landing with one condition. After the merge, skills/objectstack-ui/rules/actions.md (the locations table and the actionLayout paragraph), rules/record-page.md:40, skills/objectstack-formula/SKILL.md:139 and two eval files still teach refused words; the eval must_contain at views-apps-actions-pages.json:30 requires record_header. Both skill gates are green on the head, so no checked example or served JSON fence carries one. @objectstack/skills is in the fixed group, so a next cut between this merge and #37895 PR 2 ships skills that teach words the same version refuses; the refusal names the replacement, so an agent recovers in one round. Condition: #37895 PR 2 lands before the next prerelease cut.

N7 (nit) — Out of scope, HotCRM and docs/qa/**. HotCRM is safe: it pins @objectstack/spec 18.6.0, its five record_more declarations are all convertible, and it has no TODO shape. docs/qa is not only prose: both recorded builds (order_to_cash.json as well as travel_expense.json) carry old words and declare engines.protocol: ^19, which the artifact door replays through the major step; but the checklist's scratch bodies sent to the save door (studio-authoring.json:5372, records-forms.json:7273) will now be refused, and the install-local recipe at records-forms.json:77 carries no protocol floor (not verified whether it replays). No follow-up card is named for these; file one.

N8 (nit) — Body staleness. The PR body still says two derived gates are red until #37895 PR 1 lands; PR 1 (#37947) is on main and both gates are green on this head. The size line reads 417 files, +2308/−1624; the head is 420 files, +2322/−1631. The body names only travel_expense.json among the recorded builds.

Implemented-by: claude/project-thread-rswxk0
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

The filled brief the record above (7227370865) was rendered from (L1-a, isolated CONTRACT_REVIEW_TIER subagent):

Contract review brief — PR #37929 @ 0ada605856a2bf5cdfaecd5fd9164c57cb8da4ef (card #36495)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face narrowing — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #36495: its body and EVERY comment (rulings and earlier records included)
· PR #37929: its body, its file list, and the net diff against main at cb3f8b9538d167460d3a67c5201a1e6315e936e2
· the check-runs on 0ada605856a2bf5cdfaecd5fd9164c57cb8da4ef: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the narrowing is declared of the whole PR, never of a path: the floor is EVERY path of the diff outside the
prose faces (content/docs/**, .changeset/**), plus every file those hunks make a claim about, read in the cited code.
Widen it freely, ⛔ never below that floor; the record's Scope: line lists both. No path is the lane seat's remainder.
④ judges the narrowing itself over that floor: lockfiles, generated output, changesets and prose elsewhere in
the PR are not reviewed; the published spec and the cited code are READ to judge it, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/166e2125-4268-552f-a555-2b7c43a99f0f/scratchpad/pr-37929/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — the narrowing itself, read against the published spec on main: does it take a
declared capability away at the consumer, or make the spec's own refusal real? A capability declared
and not delivered is an implementation gap, implemented or retired, ⛔ never narrowed at the consumer.
Read the spec and the cited code in the live tree, and try to break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-27T20:19Z

L1 REWORK at 0ada605856a2bf5cdfaecd5fd9164c57cb8da4ef (L1-a for the seat). The isolated CONTRACT_REVIEW_TIER record 7227370865 is a PASS (claim 7227191836; filled brief beside it). It has no must-fix, but it has two should-fix findings, and each owes a delta of its fix before ACCEPT. Everything else holds:

  • the shipped enum is exactly the card's set, per the tap 「照卡上这套」 recorded at 7213827153;
  • the five conversion rows are word for word;
  • no reader in packages/, ui/ or examples/ still reads a retired word;
  • stored rows and built artifacts replay the conversion;
  • all 25 touched publishable packages are in the changeset;
  • CI is 61 success, 9 skipped, 0 failed;
  • the dogfood battery is pinned to 0ada6058 in report 7227149591 (4144 passed, 0 failed).

Owed before ACCEPT.

  • S1 (should-fix): a fourth case that is not lossless is converted silently. On main, record:quick_actions at record_header drew every action whose locations included record_header, whatever its component. At the head, the bar at record_page drops every component: 'action:menu' action. So locations: ['record_header'] with an authored component: 'action:menu' was a button in that bar and now is not, with no TODO. The census is zero in objectstack and HotCRM. Either fix closes it:

    • (a) the conversion reports a TODO for record_header plus an authored component: 'action:menu', with a pin; or
    • (b) the changeset and the semantic entry name the exception, and the seat takes it to the maintainer, because the card promises that every action shows exactly where it shows today.

    (a) moves code and needs a new green head. (b) is prose plus a ruling.

  • S2 (should-fix): the Clause-②: line under-declares. The diff also widens: four newly accepted values (list, record, record_page, record_row), the new @object-ui/types export actionFoldedIntoMenu, and eight new @object-ui/i18n keys. Main's precedent for a replacement with a registered conversion is Clause-②: yes (narrowing) (.changeset/pre/37086-…, .changeset/pre/37304-…), with no (narrowing) reserved for pure retirements. Write it as yes (narrowing) with the widened members named, in the changeset, the PR body and a corrected claim line. This is a prose-only change.

Nits worth taking in the same push (prose faces only, unless you choose otherwise):

  • N1: say that the two left-as-stored TODO shapes draw nothing on a 19 runtime until rewritten.
  • N4: the wording of the record_more block refusal, the record_section advice, and the two-vs-three count in the semantic entry.
  • N5: the changeset's "patch packages change comments only" is untrue for plugin-approvals, service-datasource and @object-ui/layout.
  • N8: the body's stale "two gates red" paragraph, the size line (420 files, +2322/−1631), and naming order_to_cash.json next to travel_expense.json.

Follow-ups for the seat (not this PR).

Each needs a card.

After the fix. If S1 goes by (a), I want a new green head, a same-reviewer delta on it, and the dogfood battery re-pinned to that head. If S1 goes by (b) and S2 is prose only, the head may still move for the changeset. Any new head owes the delta and a re-pinned dogfood reading. Tier H on landing (narrowing, class (c) size).

…thored fold

An action at `record_header` with `component: 'action:menu'` was folded into
the record page header's ⋯ menu and drawn as a button by a
`record:quick_actions` bar at `record_header`. At `record_page` the fold is one
state for the whole page, so the conversion now leaves it as stored with a
TODO, pinned with an ablation. A ⋯-only toolbar action that already carries
`action:menu` is rewritten losslessly instead of reported.

The changeset declares `Clause-②: yes (narrowing)` with the widened members,
and the semantic entry, the location refusal and the `record_section` advice
say what a site left as stored draws and how the fold is kept.

Claude-Session: https://claude.ai/code/session_01L9qic11optJUat6U8X67jY
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head a0d5b84 · 2026-11-27T22:06Z

L1-a runs the same reviewer's delta of record 7227370865 on this head (S1: the fourth non-lossless shape; S2: the Clause-② line), with its L1 beside it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: a0d5b846e3d1a362b8d30ed26b47f909e96291d8
Local-runs: none
Scope: delta of record 7227370865 (head 0ada6058), one commit, no rebase: packages/spec/src/conversions/entries/19/action-locations-acted-on.ts, packages/spec/src/migrations/entries/semantic/19.action-locations-page-parts-retired.ts, packages/spec/src/ui/action.zod.ts, packages/spec/src/ui/page.zod.ts + packages/spec/src/conversions/action-locations-acted-on.test.ts. Read, not reviewed: the changeset, the four regenerated content/docs/references/** pages, the PR body, claim amendment 7227443792, os-dev report 7229015330, and at this head ui/packages/plugin-detail/src/renderers/record-quick-actions.tsx, ui/packages/components/src/renderers/action/action-bar.tsx, ui/packages/components/src/renderers/action/action-group.tsx, ui/packages/components/src/renderers/layout/containers.tsx.

① Derived judgments

Delta 0ada6058..a0d5b846: 10 files, +179/−23. Check-runs on the head: 63 success, 11 skipped, 0 failed. The enum, the readers and every other path of the first record are untouched by the delta; that record stands for them.

  • Accept set and public surface: unchanged by the delta. The conversion's output changes for two input shapes (S1, N2 below); both are data-at-rest and migration behaviour, not what an author can write.
  • The widened members now named (four values; actionFoldedIntoMenu; eight @object-ui/i18n Studio keys in en and zh replacing eight) match the diff exactly.

② Semver level

  • Clause-②: yes (narrowing) is now in the changeset, the PR body and the claim amendment 7227443792, with both halves named and the two precedents cited. True. Metadata-protocol: narrowed stands.
  • Levels unchanged; the patch-package sentence now names @objectstack/plugin-approvals, @objectstack/service-datasource and @object-ui/layout. True.

③ Boundary flags

④ Design judgment

S1: closed. convertAction now leaves an action as stored, with a TODO at its locations path, when locations include record_header and component is 'action:menu'. That is exactly the shape with two states on main.

  • Not over-broad on the words: record_header + record_more + action:menu was also a button in a bar at record_header on main (the bar read the location only), so record_page + action:menu is not lossless there either.
  • Not under-broad: the test is on record_header anywhere in the list, so record_header beside record_related, record_section, list_item or list_toolbar is caught. record_more without record_header was never in that bar, and no record-page reader reads any component but action:menu.
  • It runs before the toolbar check, so the two TODOs cannot shadow each other. Pinned in the new test file (alone, beside record_more, beside list_item, and the action:icon control that still rewrites) and in the fixture (print_lead).

S2: closed.

N2 taken in code: correct, lossless, and in scope. ['list_toolbar', 'record_more'] with an authored action:menu becomes ['list', 'record_page'] with the component kept. On main the list toolbar's action:bar put it in its overflow, the header put it in its ⋯ (isMoreOnly), and a bar at record_header did not draw it. At this head the toolbar folds it, the header folds it, and a bar at record_page leaves it out. Same drawing. It is the same function of this card's conversion and is pinned (export_all, notices 13 to 14). Accepted deviation from "nits on prose faces only"; the head moved for S1 in any case.

Prose (N1, N4, N5, N8): landed true. The four regenerated reference pages agree with the describe text in action.zod.ts and page.zod.ts word for word. The body's gates paragraph, case count and order_to_cash.json line are current.

N9 (nit) — The S1 TODO cannot see whether any record:quick_actions bar exists, so it fires for every header action with an authored fold. At rest such an action now draws nowhere on a 19 runtime until rewritten, where the first head would have kept its header fold. Census is zero in objectstack and HotCRM, the consequence is stated in the changeset and the semantic entry, and it is the fix the first record named. Accepted deviation.

N10 (nit) — One new sentence overstates. "That action or block is drawn nowhere" is true for an action left as stored and for a record:quick_actions block at record_more. An action:group left as stored still draws: its inline members keep the same old word and actionRendersAt matches them exactly (action-group.tsx). The sentence errs on the safe side; fix in prose or leave.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-rswxk0
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-27T22:09Z

L1 ACCEPT at a0d5b846e3d1a362b8d30ed26b47f909e96291d8 (L1-a for the seat), answering L1 REWORK 7227400577. Tier H: it is a narrowing (feat(spec)!), and at 420 files it is a class (c) size. It goes to the seat's hand-off for the maintainer.

Contract review. Record 7227370865 on 0ada6058, and the same reviewer's delta 7229072626 on this head (claim 7229036322): PASS, S1: closed, S2: closed, no must-fix, no should-fix. verify-review-tier PASS on each transcript.

  • S1 closed. The conversion leaves record_header plus an authored component: 'action:menu' as stored, with a TODO that names the record:quick_actions bar. The TODO is neither over- nor under-broad: it catches the header word beside any other location, and no record-page reader reads another component. It is pinned in conversions/action-locations-acted-on.test.ts and the print_lead fixture, and the reported ablation reds 3 of 7.
  • S2 closed. Clause-②: yes (narrowing) is in the changeset, the body and claim amendment 7227443792, and the widened members it names (four values, actionFoldedIntoMenu, eight i18n keys) match the diff.
  • The declared deviation (N2 taken in code) is accepted. ['list_toolbar','record_more'] plus action:menu becomes ['list','record_page'] plus action:menu, which folds in the toolbar and the header and stays out of a quick-actions bar, as on main. It is lossless, sits in the same function as the S1 fix, and is pinned (export_all).
  • The prose and references hold. N1, N4, N5 and N8 landed true, and the four regenerated reference pages agree with the zod text.

Face. CI at this head is 63 success, 11 expected skip, 0 failed, 0 pending, and mergeable_state is clean. The dogfood battery is pinned to this head in report 7229015330 (4144 passed, 68 skipped, 0 failed).

For the approver.

Nits (accepted or follow-up, not blocking).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Recorded 2026-11-27T22:11Z.

  • 改了什么:动作的位置词改成按"作用对象"来说:list 和 record,再细分到 record_page、row、related、section。旧词 list_toolbar、list_item、record_header、record_more 在 19 版里保存时会被拒绝,并给出处方;升级转换会把已存的写法自动改成新词。少数无法无损转换的写法保持原样,并报 TODO,提示作者手动改。这是你 08:40Z 选「照卡上这套」定下的词表(Action locations say what an action acts on: list and record, with narrow exception words and a lossless conversion (next major) #36495,421 个文件,+2478 / −1631)。
  • 为什么:旧词说的是"放在页面哪个部位",新词说的是"作用在什么上"。作者写动作时一看就明白它对谁生效。
  • 风险:收窄(Clause-② yes (narrowing))。旧词会被拒,但有自动转换。有一种写法以前会在快捷操作栏里显示:record_header 加上作者自己写的 component: 'action:menu'。现在它保持原样并报 TODO,不会悄悄消失。objectstack 和 HotCRM 里都没有这种写法。合并前请注意:技能文档 skills: teach the new action locations vocabulary (list / record + exception words) after #36495 #37895 的第二个 PR 要在下一个 next 预发布之前落地,否则那一版的技能还会教被拒的旧词。
  • 要你做什么:审阅并合并(超过 3000 行,需要人工合并)。契约审核增量 PASS 7229072626,Head-sha: a0d5b846e3d1a362b8d30ed26b47f909e96291d8。

席位意见:可以合。L2 的 S1(静默丢失那一种写法)按第一种办法修复,改为报 TODO 并用 pin 钉住;没有向你申请例外。N2 也顺手在代码里改成了无损转换,L1-a 接受了这一偏差。

席位核对 — ACCEPT · repo:objectstack#3 · head a0d5b846e3d1a362b8d30ed26b47f909e96291d8

  1. 形态:Fixes #36495;Clause-②: yes (narrowing)(列出了新增的成员:四个新值、导出 actionFoldedIntoMenu、8 个 i18n 键),Metadata-protocol: narrowed;changeset 覆盖 25 个包;认领见修订 7227443792。
  2. 前提实测:L2 核对过,enum 与你的选择逐字一致,转换表与卡上一致,没有读取方还停在退役词上。S1 消融:去掉 TODO 后 7 个用例里 3 个转红。
  3. 门禁 check-runs:63 success、0 失败,mergeable_state clean。check-governed-merges --pr 37929:421 个路径都不受管,但改动超过 3000 行,需要人工合并。landing-k:K = 2,小于 15。dogfood 在本 head 上 4144 个测试 0 失败(报告 7229015330)。
  4. 接受的偏差:N2 在代码里做成了无损转换(export_all 夹具一行,带 pin);N9(不管有没有快捷操作栏都报 TODO)接受;N10(一句 prose 对保持原样的 action:group 说得过满)不为它动 head。L1 ACCEPT 7229088647,契约审核首轮 7227370865,增量 7229072626。
  5. 范围外去向:N3 → Studio: the record:quick_actions location dropdown offers 'record', where the bar draws only actions that literally declare 'record' and skips the record_page fold filter #38045,N7 → docs/qa: platform-checklist scratch bodies (studio-authoring.json, records-forms.json) carry the action location words #36495 retires and will be refused by the save door #38046,N6 → 记在 skills: teach the new action locations vocabulary (list / record + exception words) after #36495 #37895(7227457027),本 PR 合并后立即开 skills: teach the new action locations vocabulary (list / record + exception words) after #36495 #37895 的第二个 PR。
  6. 落地条款:需要人工合并 ⇒ 维护者亲手合并;或由 GOVERNED_APPROVERS(os-zhuang)批准后,本席按落地前检查落地。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

维护者速读

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue protocol:data protocol:ui size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants